<?php
// +----------------------------------------------------------------------
// | EtrolPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Author: Author: LJQ <245369209@qq.com> 
// +----------------------------------------------------------------------

namespace app\admin\controller\ajax;
use think\Controller;
//机构关联下拉菜单值

class Unit{

	/**
	 * 负责人下拉菜单
	 * @param string $id
	 * @return \think\response\Json
	 */
	public function getChargePersonList($id = null){
		$where = [];
		if($id){
			$where['id'] = $id;
		}
		$chargePersonList = db('rescueunit')->where($where)->field('chargePerson as name,id')->select();
		return json($chargePersonList);
	}
	

}